<?php

namespace app\common\model;


class UserRecordInfo extends BaseModel
{
    protected $name = "user_record_info";

    /**
     * 关联商品分类表
     * @return \think\model\relation\HasMany
     */
    public function userFamilyInfo()
    {
        $module = self::getCalledModule() ?: 'common';
        return $this->hasMany("app\\{$module}\\model\\UserFamilyInfo",'record_id','id');
    }
    /**
     * 关联商品分类表
     * @return \think\model\relation\HasMany
     */
    public function userJob()
    {
        $module = self::getCalledModule() ?: 'common';
        return $this->hasMany("app\\{$module}\\model\\UserJob",'record_id','id');
    }
}